package com.zyg.pojo;

/**
 * @author 申孟惠
 * @create 2019-10-15 15:26
 */
public class Car {

    private String brand;
    private String color;
    private int displacement;

    public Car() {
    }

    public Car(String brand, String color, int displacement) {
        super();
        this.brand = brand;
        this.color = color;
        this.displacement = displacement;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getDisplacement() {
        return displacement;
    }

    public void setDisplacement(int displacement) {
        this.displacement = displacement;
    }

    @Override
    public String toString() {
        return "Car{" +
                "brand='" + brand + '\'' +
                ", color='" + color + '\'' +
                ", displacement=" + displacement +
                '}';
    }
}
